/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sda.levelup.calculator.model;

/**
 *
 * @author user
 */
public class UserAction
{
    private double firstArg;
    private double secondArg;
    private char operation;
    private double result;

    public UserAction()
    {
    }

    public UserAction(double firstArg, double secondArg, char operation, double result) {
        this.firstArg = firstArg;
        this.secondArg = secondArg;
        this.operation = operation;
        this.result = result;
    }
    

    public void setFirstArg(double firstArg) {
        this.firstArg = firstArg;
    }

    public void setSecondArg(double secondArg) {
        this.secondArg = secondArg;
    }

    public void setOperation(char operation) {
        this.operation = operation;
    }

    public void setResult(double result) {
        this.result = result;
    }

    
    

    public double getFirstArg()
    {
        return firstArg;
    }

    public double getSecondArg()
    {
        return secondArg;
    }

    public char getOperation()
    {
        return operation;
    }

    public double getResult()
    {
        return result;
    }

    @Override
    public String toString(){
        return firstArg + Character.toString(operation)+ secondArg + "=" + result;
    }
    
}
